package com.david.concurrent.notify.wait;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * @author wade
 * @version 1.0
 * @date 2021/7/19 16:33
 */
public class Test {
    public static void main(String[] args) {
        BlockingQueue<String> queue=new LinkedBlockingQueue<>();
        new Thread(new Consumer(queue)).start();
        new Thread(new Consumer(queue)).start();
        new Thread(new Consumer(queue)).start();
        new Thread(new Consumer(queue)).start();
        new Thread(new Producer(queue)).start();
    }
}
